package com.lemon.smartsafetynew.ui.activity.me;

import android.widget.TextView;

import com.lemon.smartsafety.R;
import com.lemon.smartsafety.app.AppManager;
import com.lemon.smartsafety.app.Constants;
import com.lemon.smartsafetynew.ui.activity.base.SwipeBackActivity;
import com.lemon.smartsafety.utils.common.AppUtils;
import com.lemon.smartsafetynew.util.common.CommonUtil;

import butterknife.Bind;

/**
 * Created by Andrew on 2017/10/11.
 */

public class AboutActivity extends SwipeBackActivity {


    @Bind(R.id.app_version_tv)
    TextView appVersionTv;

    @Override
    protected void initTitle() {
        this.setBarTitle("关于");
    }

    @Override
    protected void callFinish() {
        AppManager.getAppManager().finishActivity(AboutActivity.this);
    }

    @Override
    protected int getContentViewId() {
        return R.layout.activity_about;
    }

    @Override
    protected void initViews() {
        super.initViews();

        appVersionTv.setText(getString(R.string.app_name)
                + " v" + CommonUtil.avoidNullString(AppUtils.getVersionName(AboutActivity.this))
                + Constants.VERSION_SUFFIX);

    }
}
